]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/network: Pass tracked object to connectObject() calls
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 3 Sep 2026 17:18:20 +0000 (19:18 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 13 Sep 2026 17:39:10 +0000 (19:39 +0200)
Otherwise the handler will be associated with the `globalThis`
object and never get disconnected automatically.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4382>
(cherry picked from commit 249e06cfec775f3a0a0506fe10e59657a28795b7)

js/ui/status/network.js

index c6c80f349b8ba10244580147011c0e7e01cb158e..4c28690b326939128335546ab694c5d3c0d8674e 100644 (file)
@@ -1803,7 +1803,7 @@ class NMWirelessToggle extends NMDeviceToggle {
                 this._startScanning();
             else
                 this._stopScanning();
-        });
+        }, this);
 
         this.menu.setHeader('network-wireless-symbolic', _('Wi–Fi'));
         this.menuButtonAccessibleName = _('Open Wi–Fi menu');